
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ce51fa81420a2c0b2c5dbe1140d8a60' type='text/javascript'%3E%3C/script%3E"));
</script>
<!--[if IE]>
<script type="text/javascript">
(function(){
	var b=("abbr,article,aside,audio,canvas,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video").split(","),
	a=b.length;
	while(a--){
		document.createElement(b[a])
		}
	})();
</script>
<![endif]-->
<!--[if (lt IE 8.0)]>
<link href="<?=base_url('css/user/qbase.css?v=463d0d8f.css') ?>" type=text/css rel=stylesheet><![endif]-->
<!--[if (!IE)|(gte IE 8.0)]><!-->
<link href="<?=base_url('css/user/qbase_datauri.css') ?>"
	type="text/css" rel="stylesheet">
<!--<![endif]-->
<?php
$url = $_SERVER ['REQUEST_URI'];
$str_arr = explode ( "/", $url );
$nav_url = $str_arr [count ( $str_arr ) - 1];
?>

<header class="mod-topbar" id="modTopbar">
	<iframe class="mod-topbar-bgframe"></iframe>
	<div class="mod-topbar-pseudo-real">
		<div class="wrapper-box clearfix">
			<div class="mod-msg-bubble hide" id="mod-msg-bubble"></div>
			<div class="left-box">
				<a href="" class="logo-box"><span id="baiduSpaceLogo" class="q-logo"></span></a>
			</div>
			<div class="center-box">
				<ul class="q-menubox">
					<li class="q-menuitem">
						<a href="<?=site_url('')?>">首页</a>
					</li>
					<li class="q-menuitem"><a title='logo' href="<?=site_url('tbk') ?>"
						<?=$nav_url!="help"&&$nav_url!="mall"?'class=q-selected':"" ?>><?=$this->_lang['tbk']?></a></li>
					<li class="q-menuitem"><a title='mall'
						<?=$nav_url=="mall"?'class=q-selected':""?>
						href="<?=site_url('mall') ?>"><?=$this->_lang['mall']?></a></li>
					<li class="q-menuitem"><a title='help'
						<?=$nav_url=="help"?'class=q-selected':""?>
						href="<?=site_url('help') ?>"><?=$this->_lang['help']?></a></li>
				</ul>
			</div>
			<div class="right-box">
				<ul class="q-navbox">
					<li class="q-navitem"><div class="q-msg-unread-tips">
							<div class="left">
								亲，欢迎来TBCOM！
								<?php if(isset($usermail)):?>
								<a href="<?=site_url('user/index/index') ?>" title="点击进入个人中心"><?=$usermail?>
								<?php else :?>
								请<a href="<?=site_url ( 'public/signin/into' )?>"
									style="padding-left: 1px;">登录
								<?php endif;?>
								<span id="qMsgUnReadTips">&nbsp;</span>
								</a>
							
							</div>
						</div></li>
					<li class="q-navitem q-nav-sp"><span></span></li>
					<li class="q-navitem"><a href="" target="_blank">私信<span
							id="qUnreadNumLetter">(8)</span></a></li>
					<li class="q-navitem q-nav-sp"><span></span></li>
					<li class="q-navitem"><a href="<?=site_url('green') ?>" ><strong><?=$this->_lang['green']?></strong></a></li>
					<?php if(isset($usermail)):?>
						<li class="q-navitem q-nav-sp"><span></span></li>
					<li class="q-navitem"><a
						href="<?=site_url('public/signin/singnout') ?>">退出</a></li>
					<?php else:?>
					<li class="q-navitem q-nav-sp"><span></span></li>
					<li class="q-navitem"><a
						href="<?=site_url('public/signin/index') ?>">注册</a></li>
					<?php endif;?>
				</ul>
			</div>
			<div class="mod-msg-unread-num hide" style="top: 7px; left: 730px;">
				<div class="left-border"></div>
				<div class="content"></div>
				<div class="right-border"></div>
			</div>
		</div>
	</div>
	<?=$this->load->view('public/v_banner')?>
</header>
<div id="top" class="ui-scrolltop" style="display: none">TOP</div>
<script type="text/javascript">  
$(document).ready(function() {  
	 //滚动条事件  
	 $("#top").show("slow"); 
    $(window).scroll(function() {  
        //改变样式 显示   
        $("#top").show("slow");  
    });//返回顶部  
    $("#top").click(function() {  
        $(window).scrollTop(0, 0);  
    });  
});
</script>
